package pointer

import "fmt"

func TestPointer2() { //获取或更新指针的值
	myInt := 4
	fmt.Println(myInt)

	myIntPointer := &myInt
	*myIntPointer = 8

	fmt.Println(*myIntPointer)
	fmt.Println(myInt)
}
